package com.example.park2212.news

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.entity.NewsBeanItem
import com.example.park2212.R

class NewsAdapter:BaseQuickAdapter<NewsBeanItem,BaseViewHolder>(R.layout.item_news) {
    override fun convert(helper: BaseViewHolder, item: NewsBeanItem) {
        helper.setText(R.id.news_name,item.title)
        helper.setText(R.id.news_title,item.content)
        helper.setText(R.id.news_time,item.publishDate)

    }
}